package com.huawei.appgallery.forum.cards.bean;

import com.huawei.appgallery.forum.base.card.ForumCardBean;
import com.huawei.appgallery.forum.base.card.bean.Post;
import com.huawei.appgallery.forum.base.card.bean.PostTime;
import com.huawei.appgallery.forum.base.card.bean.User;

public class ForumPostCardBean extends ForumCardBean {
    public static final int LIKE_ACTIVED = 1;
    public static final int LIKE_UNACTIVED = 0;
    public static final int TYPE_FAVORITE = 2;
    public static final int TYPE_OTHER = 0;
    public static final int TYPE_POST = 1;
    private boolean hasRead;
    private boolean isFromSection;
    public int like_;
    public Post post_;
    private int sectionId_;
    private int type;
    public User user_;

    public int ʼ() {
        return this.sectionId_;
    }

    public User ᐝ() {
        return this.user_;
    }

    public void ˎ(User user) {
        this.user_ = user;
    }

    public Post ʽ() {
        return this.post_;
    }

    public void ˎ(Post post) {
        this.post_ = post;
    }

    public void ˊ(int i) {
        this.like_ = i;
    }

    public boolean M_() {
        return this.like_ == 1;
    }

    public String ˋ() {
        if (this.post_ != null) {
            return this.post_.ˋॱ();
        }
        return super.ˋ();
    }

    public boolean ˏॱ() {
        return this.hasRead;
    }

    public void ˏ(boolean z) {
        this.hasRead = z;
    }

    public boolean ͺ() {
        return this.isFromSection;
    }

    public void ˋ(boolean z) {
        this.isFromSection = z;
    }

    public PostTime ˋॱ() {
        if (this.post_ != null) {
            return this.post_.ˎ();
        }
        return null;
    }

    public int ॱˊ() {
        return this.type;
    }

    public void ˏ(int i) {
        this.type = i;
    }
}
